package org.csu.mypetstore.service;

import org.csu.mypetstore.domain.PO.CartItem;
import org.csu.mypetstore.domain.PO.Item;

import java.math.BigDecimal;
import java.util.List;

public interface CartItemService {
//    public void incrementQuantityByItemId(String username, String itemId);

    public boolean containItemId(String username, String itemId);

    public void addItem(String username, Item item, boolean isInStock);

    public void removeCartItemsByItemId(String username, String itemId);

//    public void removeAllCartItem(String username);

    public void setQuantityByItemId(String username, String itemId, int quantity);

    public List<CartItem> getCartItemList(String username);

//    public BigDecimal getSubTotal(String username);

    public CartItem getCartItemByItemIDAndUsername(String itemId, String username);
}
